package cn.zxf.note.note.note;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.zxf.note.common.jpa.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * Created by zengxf on 2019/3/21.
 */
@Entity
@Table(name = "note")
@DynamicInsert
@DynamicUpdate
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Note extends AbstractEntity {

    private Integer userId;
    private Integer typeId;

    private String title;
    @Column(length = 5000)
    private String content;
    /*** 内容格式类型 {@link NoteContentTypeEnum} */
    private Integer contentType;
    /*** 状态 {@link NoteStatusEnum} */
    private Integer status;

}
